import request from '@/utils/request'
import { data } from 'jquery'

// 查询用户单提交记录列表
export function listSubmission(query) {
  return request({
    url: '/xyybackend/submission/list',
    method: 'get',
    params: query,
  })
}

// 查询用户单提交记录详细
export function getSubmission(id) {
  return request({
    url: '/xyybackend/submission/' + id,
    method: 'get',
  })
}

// 新增用户单提交记录
export function addSubmission(data) {
  return request({
    url: '/xyybackend/submission',
    method: 'post',
    data: data,
  })
}

// 修改用户单提交记录
export function updateSubmission(data) {
  return request({
    url: '/xyybackend/submission',
    method: 'put',
    data: data,
  })
}

// 删除用户单提交记录
export function delSubmission(id) {
  return request({
    url: '/xyybackend/submission/' + id,
    method: 'delete',
  })
}
// 添加官网表单
export function postFormData(data) {
  return request({
    url: '/vo/post-form',
    method: 'post',
    data: data,
  })
}
